//
//  GroupBuyTableViewCell.m
//  cityStar
//
//  Created by Hancong on 14/12/22.
//  Copyright (c) 2014年 tiny. All rights reserved.
//

#import "GroupBuyTableViewCell.h"
#import "UIImageView+WebCache.h"

@implementation GroupBuyTableViewCell

+(CGFloat)heightOfTableCell
{
    return 118;
}

-(void)configWithMessgae:(GroupBuyMessage *)message
{
//    NSString *imagePath = [NSString stringWithFormat:@""]
    [self.imageCommodity sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://api.icszx.com/image/c/id/%@/w/300/h/180/m/1",message.image]] placeholderImage:[UIImage imageNamed:@"商品列表_img"]];
    self.labelContent.text = message.name;
    self.labelOldPrice.text = [NSString stringWithFormat:@"￥%@",message.market_price];
    self.labelNewPrice.text = [NSString stringWithFormat:@"￥%@",message.special_price];
    self.labelEvaluate.text = [NSString stringWithFormat:@"%@评",message.comment];
    self.labelFrom.text = [NSString stringWithFormat:@"%@",message.supplier_name];
    if ([message.is_hot boolValue]) {
        self.imageTips.hidden = NO;
    }else{
        self.imageTips.hidden = YES;
    }
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
